package wiki.generic.concretecontents;

import java.util.HashMap;
import java.util.List;

import wiki.generic.contents.Content;
import wiki.generic.contents.ContentsPrototypeFactory;
/**
 * 
 * @author <p><strong>JwTeam</strong></p> 
 *
 */

public class ConcreteContentsFactory implements ContentsPrototypeFactory {

	protected HashMap<String, Content> contentsmap = new HashMap<String, Content>(); 
	
	@Override
	public Content generateContent(String nome,String type, int ID,
			List<String> attributes) {
		Content c=contentsmap.get(type).clone();
		c.setAllAttributes(nome,ID, attributes);
		return c;
	}

}
